package com.kaifamiao.demo.d0727.pm;

public class Person {

    public String name;

    protected int age;

    String hobby;

    private double money;


    public Person(){
        System.out.println("Person()");
    }

    void eat(){
        System.out.println("吃米饭");
    }

    public void publicMehtod(){
        System.out.println("publicMethod");
    }

    protected void protectedMehtod(){
        System.out.println("protectedMethod");
    }

    void packageAccessMethod(){
        System.out.println("packageAccessMethod");
    }

    private void privateMehtod(){
        System.out.println("privateMethod");
    }



}
